package day02.demo01object;
import day02.demo01object.Student;//同一个包下可以省略

import javax.sound.midi.Soundbank;
import java.sql.SQLOutput;

public class DemoClass {
    public static void main(String[] args) {
        Student stu=new Student();

        stu.eat();
        stu.setAge(10);
        System.out.println(stu.getAge());
        stu.setAge(stu.getAge()+1);
        System.out.println(stu.getAge());
    }


}

